package com.yishan.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @description: 用户登录
 * @author:别纪元
 * @create:2024/1/6 11:32
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "用户名为空")
    private String userName;
    @NotBlank(message = "账号为空")
    private String passWord;
}
